/**
 * Copyright 2013 ABSir's Studio
 * 
 * All right reserved
 *
 * Create on 2013-7-10 下午6:53:04
 */
package com.absir.android.orm;

import android.database.sqlite.SQLiteDatabase;

import com.j256.ormlite.support.ConnectionSource;

/**
 * @author absir
 * 
 */
public interface IDaoHelper {

	/**
	 * @return
	 */
	public int getVersion();

	/**
	 * @param database
	 * @param connectionSource
	 */
	public void onCreate(SQLiteDatabase database, ConnectionSource connectionSource);

	/**
	 * @param database
	 * @param connectionSource
	 * @param oldVersion
	 * @param newVersion
	 */
	public void onUpgrade(SQLiteDatabase database, ConnectionSource connectionSource, int oldVersion, int newVersion);

}
